<%-- 
    Document   : lookMessage
    Created on : 2012-3-20, 23:13:38
    Author     : Administrator
--%>
<%--
<%@page import="dateManager.LookDateBean"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

--%>
<%@page import="main_com.pojo.LookMessageBean" %>
<%@page import="java.util.ArrayList" %>
<%@page contentType="text/html" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>个人信息管理系统--查看个人信息</title>
    <style>
        body {
            background-color: #E0EFFF;
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        .header {
            background-color: #383838;
            color: white;
            padding: 10px 0;
            text-align: center;
        }

        a {
            text-decoration: none; /* 去掉下划线 */
        }

        .nav {
            display: flex;
            justify-content: space-around;
            background-color: #444;
            padding: 10px 0;
        }

        .nav a {
            color: white;
            text-decoration: none;
            font-weight: bold;
        }

        .nav a:hover {
            color: #95BDFF;
        }

        .content {
            padding: 20px;
            background-color: #FFF;
            margin: 20px auto;
            width: 60%;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        table, th, td {
            border: 1px solid #95BDFF;
        }

        th, td {
            padding: 10px;
            text-align: left;
        }

        th {
            background-color: #95BDFF;
            color: white;
        }

        tr:nth-child(even) {
            background-color: #F2F2F2;
        }

        tr:hover {
            background-color: #D1E2FF;
        }
    </style>
</head>
<body>
<div class="header">
    <h1>个人信息管理系统</h1>
</div>
<div class="nav">
    <a href="http://localhost/lookMessage/updateMessage.jsp">修改个人信息</a>
    <a href="#">查看个人信息</a>
    <a href="http://localhost/lookMessage/updatePassword.jsp">修改密码</a>
</div>
<div class="content">
    <table>
        <tr>
            <th>字段</th>
            <th>信息</th>
        </tr>
        <%
            ArrayList wordlist = (ArrayList) session.getAttribute("wordlist");
            if (wordlist == null || wordlist.size() == 0) {
                response.sendRedirect("http://localhost/main/bottom.jsp");
            } else {
                for (int i = wordlist.size() - 1; i >= 0; i--) {
                    LookMessageBean mm = (LookMessageBean) wordlist.get(i);
        %>
        <tr>
            <td>用户姓名</td>
            <td><%= mm.getName() %>
            </td>
        </tr>
        <tr>
            <td>用户性别</td>
            <td><%= mm.getSex() %>
            </td>
        </tr>
        <tr>
            <td>出生日期</td>
            <td><%= mm.getBirth() %>
            </td>
        </tr>
        <tr>
            <td>用户民族</td>
            <td><%= mm.getNation() %>
            </td>
        </tr>
        <tr>
            <td>用户学历</td>
            <td><%= mm.getEdu() %>
            </td>
        </tr>
        <tr>
            <td>用户类型</td>
            <td><%= mm.getWork() %>
            </td>
        </tr>
        <tr>
            <td>用户电话</td>
            <td><%= mm.getPhone() %>
            </td>
        </tr>
        <tr>
            <td>家庭住址</td>
            <td><%= mm.getPlace() %>
            </td>
        </tr>
        <tr>
            <td>邮箱地址</td>
            <td><%= mm.getEmail() %>
            </td>
        </tr>
        <%
                }
            }
        %>
    </table>
</div>
</body>
</html>